package com.dms.modules.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("product_spec_template")
@ApiModel(value = "ProductSpec对象", description = "商品规格")
public class ProductSpec {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("规格ID")
    private Long id;

    @ApiModelProperty("规格名称")
    private String name;

    @TableField("`values`")
    @ApiModelProperty("规格值")
    private String values;

    @ApiModelProperty("分类ID")
    private Long categoryId;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("是否删除")
    private Integer deleted;
} 